package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.Permission;

import java.util.List;

/**
 * @program: itcast_health
 * @create: 2019-10-28 16:52
 * @author: li he
 * @description:
 */
public interface PermissionDao {

    List<Permission> finPermissionsByRoleId(Integer roleId);

    Page<Permission> findPageByQueryString(String queryString);

    List<Permission> findAll();

    void add(Permission permission);

    Permission findById(Integer id);

    Long findCountById(Integer id);

    void delById(Integer id);

    void edit(Permission permission);
}